﻿import request from '/@/utils/request';
enum Api {
	regionadd = '/api/sysRegion/add',
	regiondelete = '/api/sysRegion/delete',
	regionupdate = '/api/sysRegion/update',
	getjcinfo = '/api/sysRegion/getjcinfo',
	regionget = '/api/sysRegion/getallList',
	getregionallinfo = '/api/sysRegion/GetallinfoList',
	uploadFilesPoject = `/api/sysFile/uploadFilesPoject`,
	getjcinfodown = `/api/sysRegion/getjcinfodown`,

}



//
export const getregion = (id: any) =>
	request({
			url: Api.regionget,
			method: 'get',
			data: { id },
		});

export const getjcinfo = (params?: any) =>
	request({
		url: Api.getjcinfo,
		method: 'get',
		data: params
	});


export const getjcinfodown = (params?: any) =>
	request({
		url: Api.getjcinfodown,
		method: 'get',
		data: params
	});

export const getregionallinfo = (params?: any) =>
	request({
		url: Api.getregionallinfo,
		method: 'get',
		data: params
	});


// 上传多个文件,并传递工程项目ID

export const uploadFilesPoject = (params?: any) => {
	return request({
		url: Api.uploadFilesPoject,
		method: 'post',
		data: params,
		headers: {
			'Content-Type': 'multipart/form-data',
		},
	});
};